package com.ssh.pac;

public class Consumer extends Thread{

	private int num;
	private Storage storage;
	
	public Consumer(int num, Storage storage) {
		this.num = num;
		this.storage = storage;
	}

	@Override
	public void run() {
		storage.buy(num);
	}

	
}
